﻿namespace TC
{
    public class IntSubtract : VariableNode
    {
        public ValueInput<int> a;
        public ValueInput<int> b;

        public ValueOutput<int> value;

        public override void OnCreate()
        {
            base.OnCreate();

            a = this.AddValueInPort<int>("a");
            b = this.AddValueInPort<int>("b");
            value = this.AddValueOutPort<int>("a-b", () =>
            {
                return a.Value - b.Value;
            });
        }
    }
}
